﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Smart.Model;
using Smart.Business.Reporting;

namespace Smart.Service
{
    /// <summary>
    /// Public Service implementation
    /// </summary>
    public class Reporting : IReporting
    {
        // here call Business Layer

        public List<MealsReportView> GetMealsReport(int currentUserID)
        {
            ReportingBL rbl = new ReportingBL();
            return rbl.GetMealsReport(currentUserID);
        }

        public List<ExerciseReportView> GetSportsReport(int currentUserID)
        {
            ReportingBL rbl = new ReportingBL();
            return rbl.GetSportsReport(currentUserID);
        }

        public string GetMealReportChartUrl(int currentUserID)
        {
            ReportingBL rbl = new ReportingBL();
            return rbl.getMealReportChartUrl(currentUserID);
        }

        public string GetSportsReportChartUrl(int currentUserID)
        {
            ReportingBL rbl = new ReportingBL();
            return rbl.getSportsReportChartUrl(currentUserID);
        } 
    }
}
